<script type="text/javascript">
$(document).ready(function(){
    a = $('.drop at') 
    a.attr('href','javascript:void(0)')
});
</script>
<ul class="menu">
{% for page in cms_pages %}
	{% ifnotequal page.get_title 'Комплектующие' %}
		<li><a href="{{ page.get_absolute_url }}" 
			{% ifequal title_page page.get_title %} class="active"{% endifequal %}>{{ page.get_title }}</a></li>
	{% else %}
	<li>
		<a href="{{ page.get_absolute_url }}" class="drop"{% ifequal title_page page.get_title %} style="background-color: #3399ff"{% endifequal %}>{{ page.get_title }}</a>
		<ul>
		{% for sec in section %}
			<li>
				<a href="{% url catalog.views.get_sec sec.id %}"{% ifequal title_down sec.name %} style="background-color: #3399ff"{% endifequal %}>{{ sec.name }}</a>
			</li>
		{% endfor %}
		</ul>
	</li>
	{% endifnotequal %}
{% endfor %}
</ul>